[iPhone]Objective C, objects which do not conform to NSCoding. How to write them to a file.

Posted by Noah on Stack Overflow See other posts from Stack Overflow or by Noah
Published on 2010-04-08T15:46:39Z Indexed on 2010/04/08 15:53 UTC
Read the original article Hit count: 265

Filed under:
|
|
|
|

Hi, I am using an Objective c class, a subclass of NSObject. This class cannot be modified. I have an instance of this class that I wish to write to a file which can be retrieved and later reinstate. The object does not conform to NSCoding.

To sum up, I need to save an instance of a class to a file which can be retrieved later, without using any of the NSCoding methods such as NSKeyedArchiving encodeWithCoder ...

Using them returns this... NSInvalidArgumentException ...encodeWithCoder:] unrecognised selector sent to instance...

Is there any other way I can store this object for later use Thank you

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone